home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
5
/
DINKDEMO
/
DINKCLAS
/
DOBJECT.C
< prev
next >
Wrap
Text File
|
1992-07-08
|
1KB
|
80 lines
/*
File: DObject.c
Written by: Mark Gross
Copyright: ⌐ 1992 by Applied Technical Software, all rights reserved.
Use at your own risk.
*/
#include "DObject.h"
#include <pascal.h>
#include <stdio.h>
void DObject::ErrorAlert(short stringsID, short theError)
{
short result;
Str255 theStr;
Str255 nullStr;
*nullStr = 0;
GetIndString(theStr, stringsID, theError);
ParamText(theStr, nullStr, nullStr, nullStr);
result = CautionAlert(rErrorAlert, NULL);
}// end of function ErrorAlert
void DObject::Beep(int times)
{
while ( times--)
SysBeep(20);
}
void DObject::EnterMB(void)
{
Debugger( );
}
void DObject::EnterMBStr(char *theString)
{
DebugStr( CtoPstr(theString) );
}
void DObject::MakeMBAlias(char* alias, void* address)
{
char buffer[80];
sprintf(buffer, ";MC %s %lx", alias, address);
EnterMBStr(buffer);
}
pascal void DObject::SetZero(void)
{
*(long *)(NULL) = 0x50FFC001;
}
void __noObject(void)
{
SysBeep(20);
DebugStr("\p noObject catch, from oopsDebug stubs!!!");
}
void __noMethod(void)
{
SysBeep(20);
SysBeep(20);
DebugStr("\p noMethod catch, from oopsDebug stubs");
}